define(['exports','vue'],function(exports,vue){'use strict';vue=vue&&vue.hasOwnProperty('default')?vue['default']:vue;//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script = {
  data: function data() {
    return {
      totalcount: 0,
      currentpage: 1,
      pagesize: 10,
      roles: [],
      aroles: [],
      rls: [],
      updateUnits: [{
        "name": "是",
        "value": "1"
      }, {
        "name": "否",
        "value": "0"
      }],
      permits: [],
      clerkList: [],
      clerkArray: [],
      rolelist: [],
      permitlist: [],
      roleshow: false,
      accountshow: false,
      showDialog: false,
      OrganizationCode: '',
      IsLoad: true,
      ShowTree: true,
      props: {
        label: 'label',
        isLeaf: 'isLeaf'
      },
      DeptID: '',
      Employees: [],
      Fullname: '',
      level: 0,
      plist: [],
      form: {
        Name: "",
        Code: "",
        accountId: "",
        accountCode: ""
      },
      searchRole: '',
      searchPermit: '',
      key: '',
      searchkey: '',
      updateUnit: '',
      treeData: []
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.loadRoles();
    this.loadPermits();
    this.loadClerk();
  },
  methods: {
    loadRoles: function loadRoles() {
      var _this = this;

      App.Service.post("/plus/Yqd/Department/GetRoleList", {}).then(function (res) {
        if (res.success) {
          _this.roles = res.roles;
          _this.aroles = res.aroles;
          _this.rls = _this.roles.concat(_this.aroles);
        }
      });
    },
    loadPermits: function loadPermits() {
      var _this2 = this;

      App.Service.post("/plus/Yqd/Department/GetPermitList", {}).then(function (res) {
        if (res.success) {
          _this2.permits = res.data;
        }
      });
    },
    loadClerk: function loadClerk() {
      var _this3 = this;

      App.Service.post("/plus/Yqd/Department/GetClerkList", {}).then(function (res) {
        if (res.success) {
          _this3.clerkList = res.data;
        }
      });
    },
    treeclick: function treeclick(node, hit) {
      this.level = node.level;
      this.OrganizationCode = node.data.OrganizationCode;
      this.Fullname = node.data.Fullname;
      this.load(true);
    },
    treeload: function treeload(node, resolve) {
      var param = {
        ParentCode: "",
        Paths: "",
        Fullname: ""
      };

      if (node && node.parent) {
        param = {
          ParentCode: node.data.OrganizationCode,
          Paths: node.data.Paths,
          Fullname: node.data.Fullname
        };
      }

      App.Service.post("/plus/Yqd/Department/GetList", param).then(function (res) {
        if (res.success) {
          resolve(res.data);
        }
      });
    },
    load: function load(bl) {
      var _this4 = this;

      //this.searchRole = '';
      //this.searchkey = '';
      //this.searchPermit = '';
      //this.updateUnit = '';
      //this.IsLoad = true;
      if (bl) this.currentpage = 1;
      var op = this.level < 4 ? "SearchUserList" : "GetUserList";
      App.Service.post("/plus/Yqd/Department/" + op, {
        start: this.currentpage,
        limit: this.pagesize,
        OrganizationCode: this.OrganizationCode,
        Level: this.level,
        role: this.searchRole,
        permit: this.searchPermit,
        key: this.searchkey,
        Fullname: this.Fullname,
        isUpdateUnit: this.updateUnit
      }).then(function (res) {
        if (res.success) {
          _this4.totalcount = res.totalcount;
          _this4.plist = res.data;
        }
      });
    },
    handleSelectionChange: function handleSelectionChange(val) {
      this.Employees = val;
    },
    handleCommand: function handleCommand(command) {
      switch (command) {
        case "1":
          this.refresh();
          break;

        case "2":
          this.UpdateUser();
          break;

        case "3":
          this.updateAvatar();
          break;
        //case "2":
        //    this.setState(1);
        //    break;
        //case "3":
        //    this.setState(2);
        //    break;
        //case "4":
        //    this.openDialog();
        //    break;
      }
    },
    openDialog: function openDialog() {
      if (this.Employees.length == 0) return;
      this.showDialog = true;
    },
    closeDialog: function closeDialog() {
      this.showDialog = false;
    },
    deptload: function deptload(node, resolve) {
      var _this5 = this;

      if (resolve == null) {
        var param = {
          ParentCode: "",
          Paths: "",
          Fullname: "",
          key: this.key
        };
      } else {
        this.resolve = resolve;
        var param = {
          ParentCode: "",
          Paths: "",
          Fullname: "",
          key: this.key
        };

        if (node && node.parent) {
          param = {
            ParentCode: node.data.OrganizationCode,
            Paths: node.data.Paths,
            Fullname: node.data.Fullname,
            key: this.key
          };
        }
      }

      App.Service.post("/plus/Yqd/Department/GetList", param).then(function (res) {
        if (res.success) {
          resolve(res.data);
          _this5.ShowTree = true;
          _this5.treeData = res.data;
        }
      }); //if (node == null || !node.data) {
      //    App.Service.post("/plus/Yqd/Department/GetList", { key: this.key }).then((res) => {
      //        if (res.success) {
      //            resolve(res.data);
      //            this.ShowTree = true;
      //        }
      //    });
      //}
    },
    find: function find() {
      this.ShowTree = false;
      this.deptload(null, this.resolve);
    },
    checkNode: function checkNode(a, b) {
      if (b.checkedKeys.length > 0) {
        this.DeptID = a.ID;
        this.$refs.tree.setCheckedKeys([a.ID]);
      }
    },
    setDept: function setDept() {
      var _this6 = this;

      if (this.Employees.length == 0) return;

      if (this.DeptID == '') {
        App.Msg.error('请选择要调动的单位！');
        return;
      }

      var codes = this.Employees.map(function (it) {
        return it.employeeCode;
      });
      App.Service.post("/plus/Yqd/Department/UpdateDept", {
        DeptID: this.DeptID,
        empCode: codes
      }).then(function (res) {
        if (res.success) {
          _this6.Employees = null;
          _this6.DeptID = '';

          _this6.closeDialog();

          _this6.load();

          _this6.treeData = [];

          _this6.deptload(null, _this6.resolve);
        }
      });
    },
    setRole: function setRole() {
      var _this7 = this;

      var Employees = JSON.stringify(this.Employees);
      var role = this.rolelist.join(',');
      var permit = this.permitlist.join(',');
      var clerk = this.clerkArray.join(",");

      if (role.length == 0) {
        App.Msg.error("请选择角色!");
        return;
      }

      App.Service.post("/plus/Yqd/Department/SetRole", {
        Employees: Employees,
        Role: role,
        PermitItem: permit,
        relationEmployeeCode: clerk
      }).then(function (res) {
        if (res.success) {
          _this7.roleshow = false;

          _this7.load();
        }
      });
    },
    showRole: function showRole() {
      if (this.Employees.length == 0) {
        App.Msg.error("请选择人员!");
        return;
      }

      this.clerkArray = [];
      this.role = '';
      this.roleshow = true;

      if (this.Employees.length > 0) {
        this.rolelist = this.Employees[0].RoleCode;
        this.permitlist = this.Employees[0].PermitCode;
        console.log(this.Employees[0]);

        if (this.Employees[0].RealtionEmployeeCode.length > 0) {
          this.clerkArray = this.Employees[0].RealtionEmployeeCode.split(',');
        }
      }
    },
    getaccount: function getaccount(row) {
      var _this8 = this;

      App.Service.post("/plus/Yqd/Department/GetAccount", {
        employeeCode: row.employeeCode
      }).then(function (res) {
        if (res.success) {
          _this8.form.Code = row.employeeCode;
          _this8.form.Name = row.employeeName;
          _this8.form.accountCode = res.accountCode;
          _this8.form.accountId = res.accountId;
          _this8.accountshow = true;
        }
      });
    },
    back: function back(code) {
      App.Service.post("/plus/yqd/WxUser/Login", {
        EmployeeCode: code
      }).then(function (res) {
        if (res.success) {
          window.open(res.url, "_blank");
        }
      });
    },
    setState: function setState(index) {
      var _this9 = this;

      if (this.Employees.length == 0) {
        App.Msg.error("请选择人员!");
        return;
      }

      var Employees = this.Employees.map(function (row) {
        return row.employeeCode;
      });
      App.Service.post("/plus/Yqd/Department/SetState", {
        Employees: Employees,
        state: index
      }).then(function (res) {
        if (res.success) {
          _this9.load();
        }
      });
    },
    del: function del() {
      var _this10 = this;

      if (this.Employees.length == 0) {
        App.Msg.error("请选择人员!");
        return;
      }

      var Employees = this.Employees.map(function (row) {
        return row.employeeCode;
      });
      App.Service.post("/plus/Yqd/Department/Delete", {
        Employees: Employees
      }).then(function (res) {
        if (res.success) {
          _this10.load();
        }
      });
    },
    updateAvatar: function updateAvatar() {
      if (this.Employees.length == 0) {
        App.Msg.error("请选择人员!");
        return;
      }

      App.Service.post("/plus/Yqd/Department/UpdateAvatar", {
        EmployeeCode: this.Employees[0].employeeCode
      }).then(function (res) {
        if (res.success) {
          App.Msg.success("人员头像更新成功！");
        }
      });
    },
    search: function search(bl) {
      var _this11 = this;

      if (bl) this.currentpage = 1;
      this.IsLoad = false;
      App.Service.post("/plus/Yqd/Department/SearchUserList", {
        start: this.currentpage,
        limit: this.pagesize,
        OrganizationCode: this.OrganizationCode,
        Level: this.level,
        role: this.searchRole,
        permit: this.searchPermit,
        key: this.searchkey,
        isUpdateUnit: this.updateUnit
      }).then(function (res) {
        if (res.success) {
          _this11.totalcount = res.totalcount;
          _this11.plist = res.data;
        }
      });
    },
    pagerclick: function pagerclick(currentpage) {
      this.currentpage = currentpage;
      if (this.IsLoad) this.load();else this.search();
    },
    sizechange: function sizechange(pagesize) {
      this.currentpage = 1;
      this.pagesize = pagesize;
      if (this.IsLoad) this.load();else this.search();
    },
    refresh: function refresh() {
      var _this12 = this;

      App.Service.post("/plus/Yqd/Department/refresh", {
        OrganizationCode: this.OrganizationCode
      }).then(function (res) {
        if (res.success) {
          App.Msg.success('刷新成功！');

          _this12.load();
        }
      });
    },
    UpdateUser: function UpdateUser() {
      var _this13 = this;

      if (this.Employees.length == 0) {
        App.Service.post("/plus/Yqd/Department/UpdateUser", {
          OrganizationCode: this.OrganizationCode
        }).then(function (res) {
          if (res.success) {
            App.Msg.success('更新成功！'); //this.$refs.orgTree.updateNode(res.parent);
            //this.$refs.orgTree.clickNode(res.current);

            _this13.load();
          }
        });
        return;
      }

      var Employees = this.Employees.map(function (row) {
        return row.employeeCode;
      });
      App.Service.post("/plus/Yqd/Department/UpdateUser", {
        Employees: Employees
      }).then(function (res) {
        if (res.success) {
          App.Msg.success('更新成功！'); //this.$refs.orgTree.updateNode(res.parent);
          //this.$refs.orgTree.clickNode(res.current);

          _this13.load();
        }
      });
    }
  }
};function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
    if (typeof shadowMode !== 'boolean') {
        createInjectorSSR = createInjector;
        createInjector = shadowMode;
        shadowMode = false;
    }
    // Vue.extend constructor export interop.
    const options = typeof script === 'function' ? script.options : script;
    // render functions
    if (template && template.render) {
        options.render = template.render;
        options.staticRenderFns = template.staticRenderFns;
        options._compiled = true;
        // functional template
        if (isFunctionalTemplate) {
            options.functional = true;
        }
    }
    // scopedId
    if (scopeId) {
        options._scopeId = scopeId;
    }
    let hook;
    if (moduleIdentifier) {
        // server build
        hook = function (context) {
            // 2.3 injection
            context =
                context || // cached call
                    (this.$vnode && this.$vnode.ssrContext) || // stateful
                    (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
            // 2.2 with runInNewContext: true
            if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
                context = __VUE_SSR_CONTEXT__;
            }
            // inject component styles
            if (style) {
                style.call(this, createInjectorSSR(context));
            }
            // register component module identifier for async chunk inference
            if (context && context._registeredComponents) {
                context._registeredComponents.add(moduleIdentifier);
            }
        };
        // used by ssr in case component is cached and beforeCreate
        // never gets called
        options._ssrRegister = hook;
    }
    else if (style) {
        hook = shadowMode
            ? function (context) {
                style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
            }
            : function (context) {
                style.call(this, createInjector(context));
            };
    }
    if (hook) {
        if (options.functional) {
            // register for functional component in vue file
            const originalRender = options.render;
            options.render = function renderWithStyleInjection(h, context) {
                hook.call(context);
                return originalRender(h, context);
            };
        }
        else {
            // inject component registration as beforeCreate hook
            const existing = options.beforeCreate;
            options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
        }
    }
    return script;
}
//# sourceMappingURL=normalize-component.mjs.map
/* script */
var __vue_script__ = script;
/* template */

var __vue_render__ = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-tree",
    staticStyle: {
      flex: "0 0 350px !important"
    }
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-treebody"
  }, [_c("adp-tree", {
    ref: "orgTree",
    attrs: {
      "node-key": "OrganizationCode",
      "node-expanded-key": "Paths"
    },
    on: {
      click: _vm.treeclick,
      load: _vm.treeload
    }
  })], 1)]), _vm._v(" "), _c("div", {
    staticClass: "ad-main"
  }, [_c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v(_vm._s(_vm.Fullname))]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-cog4 el-icon--left"
    },
    on: {
      click: _vm.showRole
    }
  }, [_vm._v("设置权限")]), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-refresh2 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.setState(1);
      }
    }
  }, [_vm._v("开通")]), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-refresh2 el-icon--left"
    },
    on: {
      click: _vm.openDialog
    }
  }, [_vm._v("调动")]), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-refresh2 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.setState(2);
      }
    }
  }, [_vm._v("停用")]), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-refresh2 el-icon--left"
    },
    on: {
      click: _vm.del
    }
  }, [_vm._v("删除")]), _vm._v(" "), _c("el-dropdown", {
    on: {
      command: _vm.handleCommand
    }
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "el-icon-more el-icon--left"
    }
  }, [_vm._v("\n                        更多"), _c("i", {
    staticClass: "el-icon-arrow-down el-icon--right"
  })]), _vm._v(" "), _c("el-dropdown-menu", {
    attrs: {
      slot: "dropdown"
    },
    slot: "dropdown"
  }, [_c("el-dropdown-item", {
    attrs: {
      icon: "el-icon-delete el-icon--left",
      command: "1"
    }
  }, [_vm._v("刷新节点")]), _vm._v(" "), _c("el-dropdown-item", {
    attrs: {
      icon: "el-icon-video-play el-icon--left",
      divided: "",
      command: "2"
    }
  }, [_vm._v("更新用户")]), _vm._v(" "), _c("el-dropdown-item", {
    attrs: {
      icon: "el-icon-video-pause el-icon--left",
      divided: "",
      command: "3"
    }
  }, [_vm._v("更新头像")])], 1)], 1), _vm._v(" "), _c("div", {
    staticStyle: {
      float: "right"
    }
  }, [_c("el-select", {
    staticStyle: {
      width: "120px"
    },
    attrs: {
      placeholder: "是否调动",
      clearable: "",
      size: "mini"
    },
    model: {
      value: _vm.updateUnit,
      callback: function callback($$v) {
        _vm.updateUnit = $$v;
      },
      expression: "updateUnit"
    }
  }, _vm._l(_vm.updateUnits, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1), _vm._v(" "), _c("el-select", {
    staticStyle: {
      width: "120px"
    },
    attrs: {
      placeholder: "角色",
      clearable: "",
      size: "mini"
    },
    model: {
      value: _vm.searchRole,
      callback: function callback($$v) {
        _vm.searchRole = $$v;
      },
      expression: "searchRole"
    }
  }, _vm._l(_vm.rls, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1), _vm._v(" "), _c("el-select", {
    staticStyle: {
      width: "120px"
    },
    attrs: {
      placeholder: "权限",
      clearable: "",
      size: "mini"
    },
    model: {
      value: _vm.searchPermit,
      callback: function callback($$v) {
        _vm.searchPermit = $$v;
      },
      expression: "searchPermit"
    }
  }, _vm._l(_vm.permits, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1), _vm._v(" "), _c("el-input", {
    staticStyle: {
      width: "130px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "姓名",
      size: "mini"
    },
    nativeOn: {
      keyup: function keyup($event) {
        if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
          return null;
        }

        return _vm.search();
      }
    },
    model: {
      value: _vm.searchkey,
      callback: function callback($$v) {
        _vm.searchkey = $$v;
      },
      expression: "searchkey"
    }
  }), _vm._v(" "), _c("el-button", {
    staticStyle: {
      padding: "7px 10px"
    },
    attrs: {
      type: "primary",
      size: "mini"
    },
    on: {
      click: function click($event) {
        return _vm.search(true);
      }
    }
  }, [_vm._v("搜索")])], 1)], 1), _vm._v(" "), _c("el-card", {
    staticClass: "box-card",
    staticStyle: {
      width: "100%"
    }
  }, [_c("el-table", {
    ref: "tbl",
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "mini",
      data: _vm.plist,
      border: ""
    },
    on: {
      "selection-change": _vm.handleSelectionChange,
      "sort-change": _vm.handleSortChange
    }
  }, [_c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      label: "序号",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      type: "selection",
      width: "50",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "employeeName",
      width: "100",
      label: "姓名",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [_c("el-button", {
          style: scope.row.Role == "未设置" ? "color: #ccc" : "color: #000",
          attrs: {
            type: "text",
            size: "mini"
          },
          on: {
            click: function click($event) {
              return _vm.getaccount(scope.row);
            }
          }
        }, [_vm._v("\n                                " + _vm._s(scope.row.employeeName) + "\n                            ")])];
      }
    }])
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "empJobLevelName",
      width: "150",
      label: "职级",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [scope.row.Role == "未设置" ? _c("div", {
          staticStyle: {
            color: "#ccc"
          }
        }, [_vm._v(_vm._s(scope.row.empJobLevelName))]) : _c("div", [_vm._v(_vm._s(scope.row.empJobLevelName))])];
      }
    }])
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "OrganizationName",
      label: "单位/部门",
      "header-align": "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [scope.row.Role == "未设置" ? _c("div", {
          staticStyle: {
            color: "#ccc"
          }
        }, [_vm._v(_vm._s(scope.row.OrganizationName))]) : _c("div", [_vm._v(_vm._s(scope.row.OrganizationName))])];
      }
    }])
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "UnitCode",
      label: "当前单位",
      width: "150",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Status",
      label: "状态",
      width: "100",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [scope.row.Status == "1" ? _c("div", {
          staticStyle: {
            color: "red"
          }
        }, [_vm._v("使用中")]) : _vm._e(), _vm._v(" "), scope.row.Status == "2" ? _c("div", {
          staticStyle: {
            color: "#ccc"
          }
        }, [_vm._v("已停用")]) : _vm._e()];
      }
    }])
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Role",
      label: "角色",
      width: "150",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [scope.row.Role == "未设置" ? _c("div", {
          staticStyle: {
            color: "#ccc"
          }
        }, [_vm._v(_vm._s(scope.row.Role))]) : _c("div", [_vm._v(_vm._s(scope.row.Role))])];
      }
    }])
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Permit",
      label: "权限",
      width: "150",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [scope.row.Permit == "未设置" ? _c("div", {
          staticStyle: {
            color: "#ccc"
          }
        }, [_vm._v(_vm._s(scope.row.Permit))]) : _c("div", [_vm._v(_vm._s(scope.row.Permit))])];
      }
    }])
  })], 1), _vm._v(" "), _c("br"), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_vm.totalcount > 0 ? _c("el-pagination", {
    attrs: {
      background: "",
      layout: "total, sizes, prev, pager, next, jumper",
      total: _vm.totalcount,
      "current-page": _vm.currentpage,
      "page-size": _vm.pagesize,
      "page-sizes": [10, 20, 30, 40, 50, 100, 200]
    },
    on: {
      "current-change": _vm.pagerclick,
      "size-change": _vm.sizechange
    }
  }) : _vm._e()], 1)], 1)], 1)]), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dtnone dbnone",
    attrs: {
      title: "设置用户权限",
      visible: _vm.roleshow,
      "close-on-click-modal": false,
      width: "500px"
    },
    on: {
      "update:visible": function updateVisible($event) {
        _vm.roleshow = $event;
      },
      close: function close($event) {
        _vm.roleshow = false;
      }
    }
  }, [_c("el-form", {
    attrs: {
      "label-position": "top"
    }
  }, [_c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "关联秘书"
    }
  }, [_c("el-select", {
    attrs: {
      multiple: "",
      placeholder: "请选择"
    },
    model: {
      value: _vm.clerkArray,
      callback: function callback($$v) {
        _vm.clerkArray = $$v;
      },
      expression: "clerkArray"
    }
  }, _vm._l(_vm.clerkList, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1)], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "主要角色"
    }
  }, [_c("el-checkbox-group", {
    model: {
      value: _vm.rolelist,
      callback: function callback($$v) {
        _vm.rolelist = $$v;
      },
      expression: "rolelist"
    }
  }, _vm._l(_vm.roles, function (item) {
    return _c("el-checkbox", {
      attrs: {
        label: Number(item.value)
      }
    }, [_vm._v(_vm._s(item.name))]);
  }), 1)], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "附加角色"
    }
  }, [_c("el-checkbox-group", {
    model: {
      value: _vm.rolelist,
      callback: function callback($$v) {
        _vm.rolelist = $$v;
      },
      expression: "rolelist"
    }
  }, _vm._l(_vm.aroles, function (item) {
    return _c("el-checkbox", {
      attrs: {
        label: Number(item.value)
      }
    }, [_vm._v(_vm._s(item.name))]);
  }), 1)], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "角色权限"
    }
  }, [_c("el-checkbox-group", {
    model: {
      value: _vm.permitlist,
      callback: function callback($$v) {
        _vm.permitlist = $$v;
      },
      expression: "permitlist"
    }
  }, _vm._l(_vm.permits, function (item) {
    return _c("el-checkbox", {
      attrs: {
        label: item.value
      }
    }, [_vm._v(_vm._s(item.name))]);
  }), 1)], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-button", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      type: "primary",
      size: "small"
    },
    on: {
      click: _vm.setRole
    }
  }, [_vm._v("确定")])], 1)], 1)], 1), _vm._v(" "), _c("el-dialog", {
    staticClass: "dtnone dbnone",
    attrs: {
      title: "用户账号",
      visible: _vm.accountshow,
      "close-on-click-modal": false,
      width: "500px"
    },
    on: {
      "update:visible": function updateVisible($event) {
        _vm.accountshow = $event;
      },
      close: function close($event) {
        _vm.accountshow = false;
      }
    }
  }, [_c("el-form", {
    attrs: {
      "label-position": "top",
      model: _vm.form
    }
  }, [_c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "temp",
      prop: "Name"
    }
  }, [_c("span", {
    attrs: {
      slot: "label"
    },
    slot: "label"
  }, [_vm._v("姓"), _c("span", {
    staticStyle: {
      "margin-left": "24px"
    }
  }, [_vm._v(" ")]), _vm._v("名")]), _vm._v(" "), _c("el-input", {
    model: {
      value: _vm.form.Name,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "Name", $$v);
      },
      expression: "form.Name"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "用户Code",
      prop: "Code"
    }
  }, [_c("el-input", {
    model: {
      value: _vm.form.Code,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "Code", $$v);
      },
      expression: "form.Code"
    }
  }, [_c("el-button", {
    attrs: {
      slot: "append",
      icon: "el-icon-right"
    },
    on: {
      click: function click($event) {
        return _vm.back(_vm.form.Code);
      }
    },
    slot: "append"
  })], 1)], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "用户账号",
      prop: "accountId"
    }
  }, [_c("el-input", {
    model: {
      value: _vm.form.accountId,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "accountId", $$v);
      },
      expression: "form.accountId"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "账号Code",
      prop: "accountCode"
    }
  }, [_c("el-input", {
    model: {
      value: _vm.form.accountCode,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "accountCode", $$v);
      },
      expression: "form.accountCode"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    staticStyle: {
      "margin-top": "20px"
    },
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-button", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      type: "primary",
      size: "small"
    },
    on: {
      click: function click($event) {
        _vm.accountshow = false;
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dialog dlg",
    attrs: {
      title: "选择调动单位",
      visible: _vm.showDialog,
      width: "450px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("el-form", {
    ref: "form",
    attrs: {
      model: _vm.form,
      "label-width": "85px"
    }
  }, [_c("el-form-item", {
    staticStyle: {
      "margin-bottom": "10px"
    },
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "390px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "单位名称",
      size: "mini"
    },
    on: {
      input: function input($event) {
        return _vm.find();
      }
    },
    model: {
      value: _vm.key,
      callback: function callback($$v) {
        _vm.key = $$v;
      },
      expression: "key"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "demo-block",
    staticStyle: {
      height: "400px",
      overflow: "auto"
    }
  }, [_vm.ShowTree ? _c("el-tree", {
    ref: "tree",
    attrs: {
      data: _vm.treeData,
      "node-key": "ID",
      "show-checkbox": "",
      props: _vm.props,
      "check-strictly": "",
      "default-checked-keys": _vm.keys,
      load: _vm.deptload,
      lazy: ""
    },
    on: {
      check: _vm.checkNode
    }
  }) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "medium"
    },
    on: {
      click: _vm.setDept
    }
  }, [_vm._v("提交")]), _vm._v(" "), _c("el-button", {
    attrs: {
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.closeDialog();
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1);
};

var __vue_staticRenderFns__ = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-title"
  }, [_c("span", [_vm._v("组织架构")])]);
}];
__vue_render__._withStripped = true;
/* style */

var __vue_inject_styles__ = undefined;
/* scoped */

var __vue_scope_id__ = undefined;
/* module identifier */

var __vue_module_identifier__ = undefined;
/* functional template */

var __vue_is_functional_template__ = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__ = normalizeComponent({
  render: __vue_render__,
  staticRenderFns: __vue_staticRenderFns__
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$1 = {
  data: function data() {
    return {
      UnitID: '',
      Unit: null,
      count: 0,
      currentpage: 0,
      unbind: false,
      ShowTree: true,
      showDialog: false,
      keys: [],
      plist: [],
      props: {
        label: 'label',
        isLeaf: 'isLeaf'
      },
      key: '',
      searchkey: ''
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.load();
  },
  methods: {
    treeload: function treeload(node, resolve) {
      var _this = this;

      this.resolve = resolve;

      if (node == null || !node.data) {
        App.Service.post("/plus/Yqd/Department/GetDeptList", {
          key: this.key
        }).then(function (res) {
          if (res.success) {
            resolve(res.data);
            _this.ShowTree = true;
          }
        });
      }
    },
    find: function find() {
      this.ShowTree = false;
      this.treeload(null, this.resolve);
    },
    chkchange: function chkchange() {
      this.currentpage = 0;
      this.load();
    },
    load: function load() {
      var _this2 = this;

      App.Service.post("/plus/Yqd/Department/GetUnitList", {
        start: App.Fn.toStart(this.currentpage),
        limit: App.pagesize,
        unbind: this.unbind,
        key: this.searchkey
      }).then(function (res) {
        if (res.success) {
          _this2.count = res.totalcount;
          _this2.plist = res.data;
        }
      });
    },
    pagerclick: function pagerclick(currentpage) {
      this.currentpage = currentpage;
      this.load();
    },
    openDialog: function openDialog() {
      if (this.Unit == null) return;
      this.UnitID = this.Unit.OrganizationCode;
      this.keys = [this.UnitID];
      this.showDialog = true;
    },
    closeDialog: function closeDialog() {
      this.showDialog = false;
    },
    checkNode: function checkNode(a, b) {
      if (b.checkedKeys.length > 0) {
        this.UnitID = a.ID;
        this.$refs.tree.setCheckedKeys([a.ID]);
      }
    },
    handleSelect: function handleSelect(selection, row) {
      this.$refs.tbl.clearSelection();

      if (selection.length == 0) {
        this.Unit = null;
        return;
      }

      if (row) {
        this.Unit = row;
        this.$refs.tbl.toggleRowSelection(row, true);
      }
    },
    setDept: function setDept() {
      var _this3 = this;

      if (this.Unit == null) return;

      if (this.UnitID == '') {
        App.Msg.error('请选择浙政钉单位！');
        return;
      }

      App.Service.post("/plus/Yqd/Department/SetRelation", {
        UnitID: this.Unit.ID,
        OrgCode: this.UnitID
      }).then(function (res) {
        if (res.success) {
          _this3.Unit = null;
          _this3.UnitID = '';

          _this3.closeDialog();

          _this3.load();
        }
      });
    },
    search: function search() {
      this.currentpage = 0;
      this.load();
    }
  }
};/* script */
var __vue_script__$1 = script$1;
/* template */

var __vue_render__$1 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-main"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-cog4 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.openDialog();
      }
    }
  }, [_vm._v("绑定")]), _vm._v(" "), _c("div", {
    staticStyle: {
      float: "right"
    }
  }, [_c("el-checkbox", {
    on: {
      change: _vm.chkchange
    },
    model: {
      value: _vm.unbind,
      callback: function callback($$v) {
        _vm.unbind = $$v;
      },
      expression: "unbind"
    }
  }, [_vm._v("未绑定")]), _vm._v(" \n                    "), _c("el-input", {
    staticStyle: {
      width: "180px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "单位名称",
      size: "mini"
    },
    nativeOn: {
      keyup: function keyup($event) {
        if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
          return null;
        }

        return _vm.search();
      }
    },
    model: {
      value: _vm.searchkey,
      callback: function callback($$v) {
        _vm.searchkey = $$v;
      },
      expression: "searchkey"
    }
  }), _vm._v(" "), _c("el-button", {
    staticStyle: {
      padding: "7px 10px"
    },
    attrs: {
      type: "primary",
      size: "mini"
    },
    on: {
      click: function click($event) {
        return _vm.search();
      }
    }
  }, [_vm._v("搜索")])], 1)], 1), _vm._v(" "), _c("el-card", {
    staticClass: "box-card"
  }, [_c("el-table", {
    ref: "tbl",
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "mini",
      data: _vm.plist,
      border: ""
    },
    on: {
      select: _vm.handleSelect
    }
  }, [_c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      label: "序号",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      type: "selection",
      width: "50",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Dept",
      label: "任务单位",
      width: "250",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Name",
      label: "浙政钉单位",
      align: "left"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [scope.row.Name == "" ? _c("div", {
          staticStyle: {
            color: "red"
          }
        }, [_vm._v("未绑定")]) : _c("div", [_vm._v(_vm._s(scope.row.Name))])];
      }
    }])
  })], 1), _vm._v(" "), _c("br"), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_vm.count > 0 ? _c("el-pagination", {
    attrs: {
      background: "",
      layout: "total, prev, pager, next",
      "current-page": _vm.currentpage,
      total: _vm.count
    },
    on: {
      "current-change": _vm.pagerclick
    }
  }) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dialog dlg",
    attrs: {
      title: "选择浙政钉单位",
      visible: _vm.showDialog,
      width: "450px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("el-form", {
    ref: "form",
    attrs: {
      model: _vm.form,
      "label-width": "85px"
    }
  }, [_c("el-form-item", {
    staticStyle: {
      "margin-bottom": "10px"
    },
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "390px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "单位名称",
      size: "mini"
    },
    nativeOn: {
      keyup: function keyup($event) {
        if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
          return null;
        }

        return _vm.find();
      }
    },
    model: {
      value: _vm.key,
      callback: function callback($$v) {
        _vm.key = $$v;
      },
      expression: "key"
    }
  }), _vm._v(" "), _c("div", {
    staticClass: "demo-block",
    staticStyle: {
      height: "400px",
      overflow: "auto"
    }
  }, [_vm.ShowTree ? _c("el-tree", {
    ref: "tree",
    attrs: {
      "node-key": "ID",
      "show-checkbox": "",
      props: _vm.props,
      "check-strictly": "",
      "default-checked-keys": _vm.keys,
      load: _vm.treeload,
      lazy: ""
    },
    on: {
      check: _vm.checkNode
    }
  }) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "medium"
    },
    on: {
      click: _vm.setDept
    }
  }, [_vm._v("提交")]), _vm._v(" "), _c("el-button", {
    attrs: {
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.closeDialog();
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1)]);
};

var __vue_staticRenderFns__$1 = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v("单位绑定")]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]);
}];
__vue_render__$1._withStripped = true;
/* style */

var __vue_inject_styles__$1 = undefined;
/* scoped */

var __vue_scope_id__$1 = undefined;
/* module identifier */

var __vue_module_identifier__$1 = undefined;
/* functional template */

var __vue_is_functional_template__$1 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$1 = normalizeComponent({
  render: __vue_render__$1,
  staticRenderFns: __vue_staticRenderFns__$1
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$2 = {
  data: function data() {
    return {
      UnitID: '',
      Unit: null,
      count: 0,
      currentpage: 0,
      unbind: false,
      ShowTree: true,
      showDialog2: false,
      showDialog: false,
      showAdd: false,
      keys: [],
      plist: [],
      props: {
        label: 'label',
        isLeaf: 'isLeaf'
      },
      key: '',
      searchkey: '',
      searchunit: '',
      ruleForm: {
        id: 0,
        year: "",
        lead: "",
        path: "",
        leadunit: [],
        tactic: ""
      },
      rules: {
        year: [{
          required: true,
          message: '请选择年份',
          trigger: 'change'
        }],
        lead: [{
          required: true,
          message: '请输入领导名称',
          trigger: 'change'
        }]
      },
      yearList: [2021, 2022, 2023],
      leadList: [],
      pathList: [],
      leadunitList: [],
      form: {
        leader: '',
        year: 2023,
        path: '',
        leadunit: []
      },
      cYear: "",
      searchYearList: []
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.loadUnit();
    this.getYear();
  },
  methods: {
    getYear: function getYear() {
      var _this = this;

      App.Service.post("/plus/yqd/WxMySupervise/GetHSearch", {}).then(function (res) {
        if (res.success) {
          _this.searchYearList = res.years;
          _this.cYear = res.years[1].value;

          _this.load();
        }
      });
    },
    search: function search(bl) {
      if (bl) this.currentpage = 0;
      this.load();
    },
    loadUnit: function loadUnit() {
      var _this2 = this;

      App.Service.post("/plus/Yqd/Department/GetUnitList2", {}).then(function (res) {
        if (res.success) {
          _this2.leadunitList = res.data;
        }
      });
    },
    find: function find() {
      this.ShowTree = false;
      this.treeload(null, this.resolve);
    },
    chkchange: function chkchange() {
      this.currentpage = 0;
      this.load();
    },
    load: function load() {
      var _this3 = this;

      App.Service.post("/plus/Yqd/UnitLeader/GetList", {
        start: App.Fn.toStart(this.currentpage),
        limit: App.pagesize,
        key: this.searchkey,
        year: this.cYear,
        unit: this.searchunit
      }).then(function (res) {
        if (res.success) {
          _this3.count = res.totalcount;
          _this3.plist = res.data;
        }
      });
    },
    pagerclick: function pagerclick(currentpage) {
      this.currentpage = currentpage;
      this.load();
    },
    openDialog: function openDialog() {
      if (this.Unit == null) {
        App.Msg.error('请选择一条！');
        return;
      }

      this.showDialog = true;
      console.log(this.Unit);
      this.ruleForm.id = this.Unit.ID;
      this.ruleForm.year = this.Unit.Year;
      this.ruleForm.lead = this.Unit.Leader;
      this.ruleForm.path = this.Unit.TaskPath;
      this.ruleForm.tactic = this.Unit.Tactic;

      if (this.Unit.UnitValue.length > 0) {
        this.ruleForm.leadunit = this.Unit.UnitValue.split(',');
      } else {
        this.ruleForm.leadunit = [];
      }
    },
    delDialog: function delDialog() {
      var _this4 = this;

      if (this.Unit == null) {
        App.Msg.error('请选择一条！');
        return;
      } else {
        this.$confirm("是否确认删除?", "提示", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(function () {
          App.Service.post("/plus/Yqd/UnitLeader/Delete", {
            ID: _this4.Unit.ID
          }).then(function (res) {
            if (res.success) {
              App.Msg.success('删除成功！');

              _this4.load();
            }
          });
        });
      }
    },
    openAddDialog: function openAddDialog() {
      this.showAdd = true;
      this.form.leadunit = [];
    },
    closeDialog: function closeDialog() {
      this.showDialog = false;
      this.showAdd = false;
    },
    checkNode: function checkNode(a, b) {
      if (b.checkedKeys.length > 0) {
        this.UnitID = a.ID;
        this.$refs.tree.setCheckedKeys([a.ID]);
      }
    },
    handleSelect: function handleSelect(selection, row) {
      this.$refs.tbl.clearSelection();

      if (selection.length == 0) {
        this.Unit = null;
        return;
      }

      if (row) {
        this.Unit = row;
        this.$refs.tbl.toggleRowSelection(row, true);
      }
    },
    setDept: function setDept(formName) {
      var _this5 = this;

      //提交接口
      App.Service.post("/plus/Yqd/UnitLeader/Update", {
        id: this.ruleForm.id,
        year: this.ruleForm.year,
        leader: this.ruleForm.lead,
        taskPath: this.ruleForm.path,
        leadunit: this.ruleForm.leadunit.length == 0 ? "" : this.ruleForm.leadunit.join(","),
        tactic: this.ruleForm.tactic
      }).then(function (res) {
        if (res.success) {
          App.Msg.success('更新成功！');

          _this5.closeDialog();

          _this5.load();
        }
      });
    },
    submit: function submit(formName) {
      var _this6 = this;

      this.$refs[formName].validate(function (valid) {
        if (valid) {

          App.Service.post("/plus/Yqd/UnitLeader/add", {
            year: _this6.form.year,
            leader: _this6.form.lead,
            taskPath: _this6.form.path,
            leadunit: _this6.form.leadunit.length == 0 ? "" : _this6.form.leadunit.join(",")
          }).then(function (res) {
            if (res.success) {
              App.Msg.success('添加成功！');

              _this6.closeDialog();

              _this6.load();
            }
          });
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    }
  }
};const isOldIE = typeof navigator !== 'undefined' &&
    /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
function createInjector(context) {
    return (id, style) => addStyle(id, style);
}
let HEAD;
const styles = {};
function addStyle(id, css) {
    const group = isOldIE ? css.media || 'default' : id;
    const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
    if (!style.ids.has(id)) {
        style.ids.add(id);
        let code = css.source;
        if (css.map) {
            // https://developer.chrome.com/devtools/docs/javascript-debugging
            // this makes source maps inside style tags work properly in Chrome
            code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
            // http://stackoverflow.com/a/26603875
            code +=
                '\n/*# sourceMappingURL=data:application/json;base64,' +
                    btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
                    ' */';
        }
        if (!style.element) {
            style.element = document.createElement('style');
            style.element.type = 'text/css';
            if (css.media)
                style.element.setAttribute('media', css.media);
            if (HEAD === undefined) {
                HEAD = document.head || document.getElementsByTagName('head')[0];
            }
            HEAD.appendChild(style.element);
        }
        if ('styleSheet' in style.element) {
            style.styles.push(code);
            style.element.styleSheet.cssText = style.styles
                .filter(Boolean)
                .join('\n');
        }
        else {
            const index = style.ids.size - 1;
            const textNode = document.createTextNode(code);
            const nodes = style.element.childNodes;
            if (nodes[index])
                style.element.removeChild(nodes[index]);
            if (nodes.length)
                style.element.insertBefore(textNode, nodes[index]);
            else
                style.element.appendChild(textNode);
        }
    }
}
//# sourceMappingURL=browser.mjs.map
/* script */
var __vue_script__$2 = script$2;
/* template */

var __vue_render__$2 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-main"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-cog4 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.openAddDialog();
      }
    }
  }, [_vm._v("添加领导")]), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-cog4 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.openDialog();
      }
    }
  }, [_vm._v("修改")]), _vm._v(" "), _c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-cog4 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.delDialog();
      }
    }
  }, [_vm._v("删除")]), _vm._v(" "), _c("div", {
    staticStyle: {
      float: "right"
    }
  }, [_c("div", {
    staticClass: "searchList"
  }, [_c("span", [_vm._v("年份：")]), _vm._v(" "), _c("el-select", {
    model: {
      value: _vm.cYear,
      callback: function callback($$v) {
        _vm.cYear = $$v;
      },
      expression: "cYear"
    }
  }, _vm._l(_vm.searchYearList, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1)], 1), _vm._v(" "), _c("el-input", {
    staticStyle: {
      width: "130px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "输入责任部门",
      size: "mini"
    },
    model: {
      value: _vm.searchunit,
      callback: function callback($$v) {
        _vm.searchunit = $$v;
      },
      expression: "searchunit"
    }
  }), _vm._v(" "), _c("el-input", {
    staticStyle: {
      width: "200px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "输入领导姓名或目录",
      size: "mini"
    },
    nativeOn: {
      keyup: function keyup($event) {
        if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
          return null;
        }

        return _vm.search();
      }
    },
    model: {
      value: _vm.searchkey,
      callback: function callback($$v) {
        _vm.searchkey = $$v;
      },
      expression: "searchkey"
    }
  }), _vm._v(" "), _c("el-button", {
    staticStyle: {
      padding: "7px 10px"
    },
    attrs: {
      type: "primary",
      size: "mini"
    },
    on: {
      click: function click($event) {
        return _vm.search(true);
      }
    }
  }, [_vm._v("搜索")])], 1)], 1), _vm._v(" "), _c("el-card", {
    staticClass: "box-card"
  }, [_c("el-table", {
    ref: "tbl",
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "mini",
      data: _vm.plist,
      border: ""
    },
    on: {
      select: _vm.handleSelect
    }
  }, [_c("el-table-column", {
    attrs: {
      type: "selection",
      width: "50",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      label: "序号",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Year",
      width: "100",
      label: "年份",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Tactic",
      width: "55",
      label: "排序",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Leader",
      width: "150",
      label: "市领导",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "TaskPath",
      label: "所属目录",
      width: "250",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "UnitName",
      label: "责任部门",
      align: "left"
    }
  })], 1), _vm._v(" "), _c("br"), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_vm.count > 0 ? _c("el-pagination", {
    attrs: {
      background: "",
      layout: "total, prev, pager, next",
      "current-page": _vm.currentpage,
      total: _vm.count
    },
    on: {
      "current-change": _vm.pagerclick
    }
  }) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dlg",
    attrs: {
      title: "领导添加",
      visible: _vm.showAdd,
      width: "500px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("el-form", {
    ref: "form",
    staticClass: "rule",
    attrs: {
      model: _vm.form,
      "status-icon": "",
      rules: _vm.rules,
      "label-width": "80px"
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "年份",
      prop: "year"
    }
  }, [_c("el-select", {
    staticStyle: {
      width: "50%"
    },
    attrs: {
      placeholder: "请选择年份"
    },
    model: {
      value: _vm.form.year,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "year", $$v);
      },
      expression: "form.year"
    }
  }, _vm._l(_vm.yearList, function (item) {
    return _c("el-option", {
      key: item,
      attrs: {
        label: item,
        value: item
      }
    });
  }), 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "temp",
      prop: "lead"
    }
  }, [_c("span", {
    attrs: {
      slot: "label"
    },
    slot: "label"
  }, [_vm._v("添加领导")]), _vm._v(" "), _c("el-input", {
    staticStyle: {
      width: "70%"
    },
    attrs: {
      size: "medium",
      placeholder: "请输入领导名称"
    },
    model: {
      value: _vm.form.lead,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "lead", $$v);
      },
      expression: "form.lead"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      label: "所属目录"
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "70%"
    },
    attrs: {
      size: "medium",
      placeholder: "请输入所属目录"
    },
    model: {
      value: _vm.form.path,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "path", $$v);
      },
      expression: "form.path"
    }
  })], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      label: "责任部门",
      prop: "leadunit"
    }
  }, [_c("el-select", {
    staticStyle: {
      width: "70%"
    },
    attrs: {
      multiple: "",
      placeholder: "请选择责任部门"
    },
    model: {
      value: _vm.form.leadunit,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "leadunit", $$v);
      },
      expression: "form.leadunit"
    }
  }, _vm._l(_vm.leadunitList, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1)], 1), _vm._v(" "), _c("el-form-item", {
    staticStyle: {
      "margin-bottom": "0px"
    }
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.submit("form");
      }
    }
  }, [_vm._v("提交")]), _vm._v(" "), _c("el-button", {
    attrs: {
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.closeDialog();
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dialog dlg",
    attrs: {
      title: "领导绑定",
      visible: _vm.showDialog,
      width: "500px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("el-form", {
    ref: "ruleForm",
    attrs: {
      model: _vm.ruleForm,
      "label-width": "85px"
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "年份",
      prop: "year"
    }
  }, [_c("el-select", {
    staticStyle: {
      width: "80%"
    },
    attrs: {
      placeholder: "请选择年份"
    },
    model: {
      value: _vm.ruleForm.year,
      callback: function callback($$v) {
        _vm.$set(_vm.ruleForm, "year", $$v);
      },
      expression: "ruleForm.year"
    }
  }, _vm._l(_vm.yearList, function (item) {
    return _c("el-option", {
      key: item,
      attrs: {
        label: item,
        value: item
      }
    });
  }), 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      label: "市领导",
      prop: "lead"
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "medium",
      placeholder: "请输入市领导"
    },
    model: {
      value: _vm.ruleForm.lead,
      callback: function callback($$v) {
        _vm.$set(_vm.ruleForm, "lead", $$v);
      },
      expression: "ruleForm.lead"
    }
  })], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      label: "排序",
      prop: "tactic"
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "medium",
      placeholder: "请输入排序"
    },
    model: {
      value: _vm.ruleForm.tactic,
      callback: function callback($$v) {
        _vm.$set(_vm.ruleForm, "tactic", $$v);
      },
      expression: "ruleForm.tactic"
    }
  })], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      label: "所属目录"
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "medium",
      placeholder: "请输入所属目录"
    },
    model: {
      value: _vm.ruleForm.path,
      callback: function callback($$v) {
        _vm.$set(_vm.ruleForm, "path", $$v);
      },
      expression: "ruleForm.path"
    }
  })], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      label: "责任部门",
      prop: "leadunit"
    }
  }, [_c("el-select", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      multiple: "",
      placeholder: "请选择责任部门"
    },
    model: {
      value: _vm.ruleForm.leadunit,
      callback: function callback($$v) {
        _vm.$set(_vm.ruleForm, "leadunit", $$v);
      },
      expression: "ruleForm.leadunit"
    }
  }, _vm._l(_vm.leadunitList, function (item) {
    return _c("el-option", {
      key: item.value,
      attrs: {
        label: item.name,
        value: item.value
      }
    });
  }), 1)], 1), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.setDept("ruleForm");
      }
    }
  }, [_vm._v("提交")]), _vm._v(" "), _c("el-button", {
    attrs: {
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.closeDialog();
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1)], 1)]);
};

var __vue_staticRenderFns__$2 = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v("领导绑定")]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]);
}];
__vue_render__$2._withStripped = true;
/* style */

var __vue_inject_styles__$2 = function __vue_inject_styles__(inject) {
  if (!inject) return;
  inject("data-v-cdd3f6a2_0", {
    source: "\n.searchList {\n    float: left;\n    margin-right:20px;\n}\n.searchList span {\n    float:left;\n    height:28px;\n    line-height:28px;\n}\n.searchList .el-select {\n    width: 100px;\n    float: left;\n}\n.searchList .el-select .el-input__inner {\n    height: 28px;\n    line-height: 28px;\n}\n.searchList .el-select .el-input__icon {\n    line-height: 28px;\n}\n",
    map: {
      "version": 3,
      "sources": ["F:\\git-ypd\\yqd\\iDev\\areas\\Yqd\\Vue\\org\\leader.vue"],
      "names": [],
      "mappings": ";AAyVA;IACA,WAAA;IACA,iBAAA;AACA;AACA;IACA,UAAA;IACA,WAAA;IACA,gBAAA;AACA;AACA;IACA,YAAA;IACA,WAAA;AACA;AACA;IACA,YAAA;IACA,iBAAA;AACA;AACA;IACA,iBAAA;AACA",
      "file": "leader.vue",
      "sourcesContent": ["﻿<template>\r\n    <div class=\"ad-content\">\r\n        <div class=\"ad-main\">\r\n            <div class=\"ad-console-top\">\r\n                <div class=\"ad-console-top-name\">领导绑定</div>\r\n                <div class=\"ad-console-top-body\"></div>\r\n                <div class=\"ad-console-top-end\"></div>\r\n            </div>\r\n            <div class=\"ad-console-body\">\r\n                <div class=\"ad-console-toolbar\">\r\n                    <el-button type=\"primary\" size=\"mini\" icon=\"icon-cog4 el-icon--left\" @click=\"openAddDialog()\">添加领导</el-button>\r\n                    <el-button type=\"primary\" size=\"mini\" icon=\"icon-cog4 el-icon--left\" @click=\"openDialog()\">修改</el-button>\r\n                    <el-button type=\"primary\" size=\"mini\" icon=\"icon-cog4 el-icon--left\" @click=\"delDialog()\">删除</el-button>\r\n                    <div style=\"float:right\">\r\n                        <div class=\"searchList\">\r\n                            <span>年份：</span>\r\n                            <el-select v-model=\"cYear\">\r\n                                <el-option v-for=\"item in searchYearList\" :key=\"item.value\" :label=\"item.name\" :value=\"item.value\"></el-option>\r\n                            </el-select>\r\n                        </div>\r\n                        <el-input v-model=\"searchunit\" prefix-icon=\"el-icon-search\" placeholder=\"输入责任部门\" style=\"width:130px;\" size=\"mini\"></el-input>\r\n                        <el-input v-model=\"searchkey\" prefix-icon=\"el-icon-search\" placeholder=\"输入领导姓名或目录\" @keyup.enter.native=\"search()\" style=\"width:200px;\" size=\"mini\"></el-input>\r\n                        <el-button type=\"primary\" size=\"mini\" @click=\"search(true)\" style=\"padding: 7px 10px;\">搜索</el-button>\r\n                    </div>\r\n                </div>\r\n                <el-card class=\"box-card\">\r\n                    <el-table ref=\"tbl\" size=\"mini\" :data=\"plist\" border style=\"width: 100%\" @select=\"handleSelect\">\r\n                        <el-table-column type=\"selection\" width=\"50\" align=\"center\"></el-table-column>\r\n                        <el-table-column type=\"index\" width=\"55\" label=\"序号\" align=\"center\"></el-table-column>\r\n                        <el-table-column prop=\"Year\" width=\"100\" label=\"年份\" align=\"left\"></el-table-column>\r\n                        <el-table-column prop=\"Tactic\" width=\"55\" label=\"排序\" align=\"left\"></el-table-column>\r\n                        <el-table-column prop=\"Leader\" width=\"150\" label=\"市领导\" align=\"left\"></el-table-column>\r\n                        <el-table-column prop=\"TaskPath\" label=\"所属目录\" width=\"250\" align=\"left\"></el-table-column>\r\n                        <el-table-column prop=\"UnitName\" label=\"责任部门\" align=\"left\"></el-table-column>\r\n\r\n                    </el-table>\r\n                    <br />\r\n                    <div style=\"text-align:center\"><el-pagination v-if=\"count>0\" background layout=\"total, prev, pager, next\" :current-page=\"currentpage\" :total=\"count\" @current-change=\"pagerclick\"></el-pagination></div>\r\n                </el-card>\r\n            </div>\r\n            <el-dialog title=\"领导添加\" class=\"dlg\" v-dialogDrag :visible=\"showAdd\" width=\"500px\" @close=\"closeDialog()\">\r\n                <el-form :model=\"form\" class=\"rule\" status-icon :rules=\"rules\" ref=\"form\" label-width=\"80px\">\r\n                    <el-form-item label=\"年份\" prop=\"year\">\r\n                        <el-select v-model=\"form.year\" placeholder=\"请选择年份\" style=\"width:50%\">\r\n                            <el-option v-for=\"item in yearList\"\r\n                                       :key=\"item\"\r\n                                       :label=\"item\"\r\n                                       :value=\"item\">\r\n                            </el-option>\r\n                        </el-select>\r\n                    </el-form-item>\r\n                    <el-form-item label-width=\"0px\">\r\n                        <el-col :span=\"24\">\r\n                            <el-form-item label=\"temp\" prop=\"lead\">\r\n                                <span slot=\"label\">添加领导</span>\r\n                                <el-input v-model=\"form.lead\" size=\"medium\" placeholder=\"请输入领导名称\" style=\"width:70%\"></el-input>\r\n                            </el-form-item>\r\n                        </el-col>\r\n                    </el-form-item>\r\n\r\n                    <el-form-item label=\"所属目录\">\r\n                        <el-input v-model=\"form.path\" size=\"medium\" placeholder=\"请输入所属目录\" style=\"width:70%\"></el-input>\r\n                    </el-form-item>\r\n\r\n                    <el-form-item label=\"责任部门\" prop=\"leadunit\">\r\n                        <el-select v-model=\"form.leadunit\" multiple placeholder=\"请选择责任部门\" style=\"width:70%\">\r\n                            <el-option v-for=\"item in leadunitList\"\r\n                                       :key=\"item.value\"\r\n                                       :label=\"item.name\"\r\n                                       :value=\"item.value\">\r\n                            </el-option>\r\n                        </el-select>\r\n                    </el-form-item>\r\n                    <el-form-item style=\"margin-bottom:0px;\">\r\n                        <el-button type=\"primary\" size=\"medium\" @click=\"submit('form')\">提交</el-button>\r\n                        <el-button size=\"medium\" @click=\"closeDialog()\">关闭</el-button>\r\n                    </el-form-item>\r\n                </el-form>\r\n            </el-dialog>\r\n            <el-dialog title=\"领导绑定\" class=\"dialog dlg\" v-dialogDrag :visible=\"showDialog\" width=\"500px\" @close=\"closeDialog()\">\r\n                <el-form :model=\"ruleForm\" ref=\"ruleForm\" label-width=\"85px\">\r\n                    <el-form-item label=\"年份\" prop=\"year\">\r\n                        <el-select v-model=\"ruleForm.year\" placeholder=\"请选择年份\" style=\"width:80%\">\r\n                            <el-option v-for=\"item in yearList\"\r\n                                       :key=\"item\"\r\n                                       :label=\"item\"\r\n                                       :value=\"item\">\r\n                            </el-option>\r\n                        </el-select>\r\n                    </el-form-item>\r\n                    <el-form-item label=\"市领导\" prop=\"lead\">\r\n                        <el-input v-model=\"ruleForm.lead\" size=\"medium\" placeholder=\"请输入市领导\" style=\"width:100%\"></el-input>\r\n                        <!--<el-select v-model=\"ruleForm.lead\" filterable multiple placeholder=\"请选择市领导\" style=\"width:80%\">\r\n            <el-option v-for=\"item in leadList\"\r\n                       :key=\"item.id\"\r\n                       :label=\"item.text\"\r\n                       :value=\"item.id\">\r\n            </el-option>\r\n        </el-select>-->\r\n                    </el-form-item>\r\n                    <el-form-item label=\"排序\" prop=\"tactic\">\r\n                        <el-input v-model=\"ruleForm.tactic\" size=\"medium\" placeholder=\"请输入排序\" style=\"width:100%\"></el-input>\r\n                    </el-form-item>\r\n                    <el-form-item label=\"所属目录\">\r\n                        <el-input v-model=\"ruleForm.path\" size=\"medium\" placeholder=\"请输入所属目录\" style=\"width:100%\"></el-input>\r\n                        <!--<el-select v-model=\"ruleForm.path\" filterable multiple placeholder=\"请选择所属目录\" style=\"width:80%\">\r\n            <el-option v-for=\"item in pathList\"\r\n                       :key=\"item.value\"\r\n                       :label=\"item.text\"\r\n                       :value=\"item.value\">\r\n            </el-option>\r\n        </el-select>-->\r\n                    </el-form-item>\r\n                    <el-form-item label=\"责任部门\" prop=\"leadunit\">\r\n                        <el-select v-model=\"ruleForm.leadunit\" multiple placeholder=\"请选择责任部门\" style=\"width:100%\">\r\n                            <el-option v-for=\"item in leadunitList\"\r\n                                       :key=\"item.value\"\r\n                                       :label=\"item.name\"\r\n                                       :value=\"item.value\">\r\n                            </el-option>\r\n                        </el-select>\r\n                    </el-form-item>\r\n\r\n                    <div style=\"text-align:center;\">\r\n                        <el-button type=\"primary\" size=\"medium\" @click=\"setDept('ruleForm')\">提交</el-button>\r\n                        <el-button size=\"medium\" @click=\"closeDialog()\">关闭</el-button>\r\n                    </div>\r\n                </el-form>\r\n            </el-dialog>\r\n        </div>\r\n    </div>\r\n</template>\r\n<script>\r\n    export default {\r\n        data() {\r\n            return {\r\n                UnitID: '',\r\n                Unit: null,\r\n                count: 0,\r\n                currentpage: 0,\r\n                unbind: false,\r\n                ShowTree: true,\r\n                showDialog2:false,\r\n                showDialog: false,\r\n                showAdd: false,\r\n                keys: [],\r\n                plist: [],\r\n                props: {\r\n                    label: 'label',\r\n                    isLeaf: 'isLeaf'\r\n                },\r\n                key: '',\r\n                searchkey: '',\r\n                searchunit:'',\r\n                ruleForm: {\r\n                    id:0,\r\n                    year: \"\",\r\n                    lead: \"\",\r\n                    path: \"\",\r\n                    leadunit: [],\r\n                    tactic: \"\"\r\n                },\r\n                rules: {                  \r\n                    year: [\r\n                        { required: true, message: '请选择年份', trigger: 'change' }\r\n                    ],\r\n                    lead: [\r\n                        { required: true, message: '请输入领导名称', trigger: 'change' }\r\n                    ]\r\n                },\r\n                yearList: [2021,2022,2023],\r\n                leadList: [],\r\n                pathList: [],\r\n                leadunitList: [],\r\n                form: {\r\n                    leader: '',\r\n                    year: 2023,\r\n                    path: '',\r\n                    leadunit: [],                   \r\n                },\r\n                cYear: \"\",\r\n                searchYearList:[]\r\n            }\r\n        },\r\n        mounted() {\r\n            App.Page.init(this);\r\n            \r\n            this.loadUnit();\r\n            this.getYear();\r\n        },\r\n        methods: {\r\n            getYear() {\r\n                App.Service.post(\"/plus/yqd/WxMySupervise/GetHSearch\", {}).then((res) => {\r\n                    if (res.success) {\r\n                        this.searchYearList = res.years;\r\n                        this.cYear = res.years[1].value;\r\n                        this.load();\r\n                    }\r\n                });              \r\n            },\r\n            search(bl) {\r\n                if (bl) this.currentpage = 0;\r\n                this.load();\r\n            },\r\n            loadUnit() {\r\n                App.Service.post(\"/plus/Yqd/Department/GetUnitList2\", {}).then((res) => {\r\n                    if (res.success) {\r\n                        this.leadunitList = res.data;\r\n                    }\r\n                });\r\n            },\r\n            find() {\r\n                this.ShowTree = false;\r\n                this.treeload(null, this.resolve);\r\n            },\r\n            chkchange() {\r\n                this.currentpage = 0;\r\n                this.load();\r\n            },\r\n            load() {\r\n                App.Service.post(\"/plus/Yqd/UnitLeader/GetList\", {\r\n                    start: App.Fn.toStart(this.currentpage),\r\n                    limit: App.pagesize,\r\n                    key: this.searchkey,\r\n                    year: this.cYear,\r\n                    unit: this.searchunit\r\n                }).then((res) => {\r\n                    if (res.success) {\r\n                        this.count = res.totalcount;\r\n                        this.plist = res.data;\r\n                    }\r\n                });\r\n            },\r\n            pagerclick(currentpage) {\r\n                this.currentpage = currentpage;\r\n                this.load();\r\n            },\r\n            openDialog() {\r\n                if (this.Unit == null) {\r\n                    App.Msg.error('请选择一条！');\r\n                    return;\r\n                }\r\n                this.showDialog = true;\r\n                console.log(this.Unit);\r\n                this.ruleForm.id = this.Unit.ID;\r\n                this.ruleForm.year = this.Unit.Year;\r\n                this.ruleForm.lead = this.Unit.Leader;\r\n                this.ruleForm.path = this.Unit.TaskPath;\r\n                this.ruleForm.tactic = this.Unit.Tactic;\r\n                if (this.Unit.UnitValue.length > 0) {\r\n                    this.ruleForm.leadunit = this.Unit.UnitValue.split(',');\r\n                } else {\r\n                    this.ruleForm.leadunit = [];\r\n                }\r\n            },\r\n            delDialog() {\r\n                if (this.Unit == null) {\r\n                    App.Msg.error('请选择一条！');\r\n                    return;\r\n                } else {\r\n                    this.$confirm(\"是否确认删除?\", \"提示\", {\n                        confirmButtonText: \"确定\",\n                        cancelButtonText: \"取消\",\n                        type: \"warning\",\n                    }).then(() => {\n                        App.Service.post(\"/plus/Yqd/UnitLeader/Delete\", {\r\n                            ID: this.Unit.ID\r\n                        }).then((res) => {\r\n                            if (res.success) {\r\n                                App.Msg.success('删除成功！');\r\n                                this.load();\r\n                            }\r\n                        });                      \n                    });\r\n                }\r\n            },\r\n            openAddDialog() {\r\n                this.showAdd = true;\r\n                this.form.leadunit = [];\r\n            },\r\n            closeDialog() {\r\n                this.showDialog = false;\r\n                this.showAdd = false;\r\n            },\r\n            checkNode: function (a, b) {\r\n                if (b.checkedKeys.length > 0) {\r\n                    this.UnitID = a.ID;\r\n                    this.$refs.tree.setCheckedKeys([a.ID]);\r\n                }\r\n            },\r\n            handleSelect(selection, row) {\r\n                this.$refs.tbl.clearSelection();\r\n                if (selection.length == 0) {\r\n                    this.Unit = null;\r\n                    return;\r\n                }\r\n                if (row) {\r\n                    this.Unit = row;\r\n                    this.$refs.tbl.toggleRowSelection(row, true);\r\n                }\r\n            },\r\n            setDept(formName) {\r\n                //提交接口\r\n                App.Service.post(\"/plus/Yqd/UnitLeader/Update\", {\r\n                    id: this.ruleForm.id,\r\n                    year: this.ruleForm.year,\r\n                    leader: this.ruleForm.lead,\r\n                    taskPath: this.ruleForm.path,\r\n                    leadunit: this.ruleForm.leadunit.length == 0 ? \"\" : this.ruleForm.leadunit.join(\",\"),\r\n                    tactic: this.ruleForm.tactic,\r\n                }).then((res) => {\r\n                    if (res.success) {\r\n                        App.Msg.success('更新成功！');\r\n                        this.closeDialog();\r\n                        this.load();\r\n                    }\r\n                });\r\n            },\r\n            submit(formName) {\r\n                this.$refs[formName].validate((valid) => {\r\n                    if (valid) {\r\n                        let poprms = {};\r\n                        //提交接口\r\n                        App.Service.post(\"/plus/Yqd/UnitLeader/add\", {\r\n                            year: this.form.year,\r\n                            leader: this.form.lead,\r\n                            taskPath: this.form.path,\r\n                            leadunit: this.form.leadunit.length == 0 ? \"\" : this.form.leadunit.join(\",\"),\r\n                        }).then((res) => {\r\n                            if (res.success) {\r\n                                App.Msg.success('添加成功！');\r\n                                this.closeDialog();\r\n                                this.load();\r\n                            }\r\n                        });\r\n                    } else {\r\n                        console.log('error submit!!');\r\n                        return false;\r\n                    }\r\n                });\r\n            }\r\n        }\r\n    };\r\n</script>\r\n<style>\r\n    .searchList {\r\n        float: left;\r\n        margin-right:20px;\r\n    }\r\n    .searchList span {\r\n        float:left;\r\n        height:28px;\r\n        line-height:28px;\r\n    }\r\n    .searchList .el-select {\r\n        width: 100px;\r\n        float: left;\r\n    }\r\n    .searchList .el-select .el-input__inner {\r\n        height: 28px;\r\n        line-height: 28px;\r\n    }\r\n    .searchList .el-select .el-input__icon {\r\n        line-height: 28px;\r\n    }\r\n</style>\r\n"]
    },
    media: undefined
  });
};
/* scoped */


var __vue_scope_id__$2 = undefined;
/* module identifier */

var __vue_module_identifier__$2 = undefined;
/* functional template */

var __vue_is_functional_template__$2 = false;
/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$2 = normalizeComponent({
  render: __vue_render__$2,
  staticRenderFns: __vue_staticRenderFns__$2
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, createInjector, undefined, undefined);//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$3 = {
  data: function data() {
    return {
      plist: [],
      sd: [],
      count: 0,
      currentpage: 0,
      pickerOptions: {
        shortcuts: [{
          text: '最近一周',
          onClick: function onClick(picker) {
            var end = new Date();
            var start = new Date();
            start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
            picker.$emit('pick', [start, end]);
          }
        }, {
          text: '最近一个月',
          onClick: function onClick(picker) {
            var end = new Date();
            var start = new Date();
            start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
            picker.$emit('pick', [start, end]);
          }
        }, {
          text: '最近三个月',
          onClick: function onClick(picker) {
            var end = new Date();
            var start = new Date();
            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
            picker.$emit('pick', [start, end]);
          }
        }]
      },
      searchkey: ''
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.load();
  },
  methods: {
    load: function load() {
      var _this = this;

      var param = {
        start: App.Fn.toStart(this.currentpage),
        limit: App.pagesize,
        key: this.searchkey
      };

      if (this.sd.length > 0) {
        param.sdate = this.sd[0];
        param.edate = this.sd[1];
      }

      App.Service.post("/plus/Yqd/Department/GetLogList", param).then(function (res) {
        if (res.success) {
          _this.count = res.totalcount;
          _this.plist = res.data;
        }
      });
    },
    pagerclick: function pagerclick(currentpage) {
      this.currentpage = currentpage;
      this.load();
    },
    refresh: function refresh() {
      this.searchkey = "";
      this.sd = [];
      this.load();
    }
  }
};/* script */
var __vue_script__$3 = script$3;
/* template */

var __vue_render__$3 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-main"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-refresh2 el-icon--left"
    },
    on: {
      click: _vm.refresh
    }
  }, [_vm._v("刷新")]), _vm._v(" "), _c("div", {
    staticStyle: {
      float: "right"
    }
  }, [_c("el-date-picker", {
    staticStyle: {
      width: "260px"
    },
    attrs: {
      size: "mini",
      type: "daterange",
      format: "yyyy年MM月dd日",
      "value-format": "yyyy-MM-dd",
      align: "right",
      "unlink-panels": "",
      "range-separator": "至",
      "start-placeholder": "开始日期",
      "end-placeholder": "结束日期",
      "picker-options": _vm.pickerOptions
    },
    model: {
      value: _vm.sd,
      callback: function callback($$v) {
        _vm.sd = $$v;
      },
      expression: "sd"
    }
  }), _vm._v(" "), _c("el-input", {
    staticStyle: {
      width: "150px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "姓名/单位",
      size: "mini"
    },
    nativeOn: {
      keyup: function keyup($event) {
        if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
          return null;
        }

        return _vm.load();
      }
    },
    model: {
      value: _vm.searchkey,
      callback: function callback($$v) {
        _vm.searchkey = $$v;
      },
      expression: "searchkey"
    }
  }), _vm._v(" "), _c("el-button", {
    staticStyle: {
      padding: "7px 10px"
    },
    attrs: {
      type: "primary",
      size: "mini"
    },
    on: {
      click: function click($event) {
        return _vm.load();
      }
    }
  }, [_vm._v("搜索")])], 1)], 1), _vm._v(" "), _c("el-card", {
    staticClass: "box-card"
  }, [_c("el-table", {
    ref: "tbl",
    staticStyle: {
      width: "100%"
    },
    attrs: {
      size: "mini",
      data: _vm.plist,
      border: ""
    },
    on: {
      select: _vm.handleSelect
    }
  }, [_c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      label: "序号",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "employeeName",
      width: "100",
      label: "姓名",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "empJobLevelName",
      width: "150",
      label: "职业",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "OrganizationName",
      label: "单位/部门",
      "header-align": "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Role",
      label: "角色",
      width: "150",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Instime",
      label: "最后访问时间",
      width: "150",
      align: "center"
    }
  })], 1), _vm._v(" "), _c("br"), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_vm.count > 0 ? _c("el-pagination", {
    attrs: {
      background: "",
      layout: "total, prev, pager, next",
      "current-page": _vm.currentpage,
      total: _vm.count
    },
    on: {
      "current-change": _vm.pagerclick
    }
  }) : _vm._e()], 1)], 1)], 1)])]);
};

var __vue_staticRenderFns__$3 = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v("访问量")]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]);
}];
__vue_render__$3._withStripped = true;
/* style */

var __vue_inject_styles__$3 = undefined;
/* scoped */

var __vue_scope_id__$3 = undefined;
/* module identifier */

var __vue_module_identifier__$3 = undefined;
/* functional template */

var __vue_is_functional_template__$3 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$3 = normalizeComponent({
  render: __vue_render__$3,
  staticRenderFns: __vue_staticRenderFns__$3
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$4 = {
  data: function data() {
    return {
      list: [],
      showDialog: false,
      IsAdmin: false,
      ShowIndate: false,
      form: {
        IntegralRuleID: 0,
        Value: '',
        Remark: ''
      },
      rules: {
        Value: [{
          required: true,
          message: '请输入分值',
          trigger: 'blur'
        }]
      }
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.load();
  },
  methods: {
    load: function load() {
      var _this = this;

      App.Service.post("/plus/Yqd/IntegralRule/GetList", {
        p: -1
      }).then(function (res) {
        if (res.success) {
          _this.IsAdmin = true; // res.Master.UserType == 50;

          _this.list = res.data; //var cname = "";
          //var len = 1;
          //var item = null;
          //this.list.forEach(function (i) {
          //    if (i.ClassName == cname) {
          //        i.ClassName = '';
          //        len++;
          //    }
          //    else {
          //        if (cname != '') item.len = len;
          //        cname = i.ClassName;
          //        item = i;
          //        len = 1;
          //    }
          //});
          //if (item != null) item.len = len;
        }
      });
    },
    generate: function generate() {
      App.Service.post("/plus/Yqd/IntegralRule/UpdateIntegral", {}).then(function (res) {
        if (res.success) {
          App.Msg.success('所有部门积分重置成功！');
        }
      });
    },
    updatetest: function updatetest() {
      App.Service.post("/plus/Yqd/IntegralRule/UpdateTest", {}).then(function (res) {
        if (res.success) {
          App.Msg.success('预警信息重置！');
        }
      });
    },
    openDialog: function openDialog(rID) {
      var _this2 = this;

      App.Service.post("/plus/Yqd/IntegralRule/Get", {
        ruleID: rID
      }).then(function (res) {
        if (res.success) {
          _this2.showDialog = true;
          _this2.form = res.data;
        }
      });
    },
    closeDialog: function closeDialog() {
      this.showDialog = false;
      this.reset();
    },
    submit: function submit() {
      var _this3 = this;

      this.$refs["form"].validate(function (valid) {
        if (valid) {
          App.Service.post("/plus/Yqd/IntegralRule/Edit", _this3.form).then(function (res) {
            if (res.success) {
              App.Msg.success('评分规则设置成功！');

              _this3.reset();

              _this3.showDialog = false;

              _this3.load();
            }
          });
          return;
        }
      });
    },
    reset: function reset() {
      this.form = {
        PayrollRuleID: 0,
        Value: '',
        Remark: ''
      };
      this.$refs["form"].resetFields();
    }
  }
};/* script */
var __vue_script__$4 = script$4;
/* template */

var __vue_render__$4 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-main"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_vm.IsAdmin ? _c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "small",
      icon: "el-icon-refresh el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.generate();
      }
    }
  }, [_vm._v("重置绩效评分")])], 1) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "ad-card"
  }, [_c("el-table", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      data: _vm.list,
      size: "mini",
      border: ""
    },
    on: {
      "sort-change": _vm.handleSortChange
    }
  }, [_c("el-table-column", {
    attrs: {
      prop: "Name",
      label: "任务状态",
      width: "200",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Value",
      label: "分数",
      width: "150",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Remark",
      label: "绩效说明",
      align: "left"
    }
  }), _vm._v(" "), _vm.IsAdmin ? _c("el-table-column", {
    attrs: {
      label: "操作",
      width: "80",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [_c("el-button", {
          attrs: {
            type: "text",
            size: "mini"
          },
          on: {
            click: function click($event) {
              return _vm.openDialog(scope.row.IntegralRuleID);
            }
          }
        }, [_vm._v("设置")])];
      }
    }], null, false, 1002172334)
  }) : _vm._e()], 1)], 1)]), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dlg",
    attrs: {
      title: "设置评分规则",
      visible: _vm.showDialog,
      width: "500px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("el-form", {
    ref: "form",
    staticClass: "rule",
    attrs: {
      model: _vm.form,
      "status-icon": "",
      rules: _vm.rules,
      "label-width": "80px"
    }
  }, [_c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "temp",
      prop: "Value"
    }
  }, [_c("span", {
    attrs: {
      slot: "label"
    },
    slot: "label"
  }, [_vm._v("分"), _c("span", {
    staticStyle: {
      "margin-left": "23px"
    }
  }, [_vm._v(" ")]), _vm._v("数")]), _vm._v(" "), _c("el-input-number", {
    staticStyle: {
      width: "380px"
    },
    attrs: {
      controls: false,
      min: 0
    },
    model: {
      value: _vm.form.Value,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "Value", $$v);
      },
      expression: "form.Value"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "评分说明",
      prop: "Remark"
    }
  }, [_c("el-input", {
    attrs: {
      type: "textarea",
      rows: 7
    },
    model: {
      value: _vm.form.Remark,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "Remark", $$v);
      },
      expression: "form.Remark"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    staticStyle: {
      "margin-bottom": "0px"
    }
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "medium"
    },
    on: {
      click: _vm.submit
    }
  }, [_vm._v("提交")]), _vm._v(" "), _c("el-button", {
    attrs: {
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.closeDialog();
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1)], 1)]);
};

var __vue_staticRenderFns__$4 = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v("评分规则")]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]);
}];
__vue_render__$4._withStripped = true;
/* style */

var __vue_inject_styles__$4 = undefined;
/* scoped */

var __vue_scope_id__$4 = undefined;
/* module identifier */

var __vue_module_identifier__$4 = undefined;
/* functional template */

var __vue_is_functional_template__$4 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$4 = normalizeComponent({
  render: __vue_render__$4,
  staticRenderFns: __vue_staticRenderFns__$4
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$5 = {
  data: function data() {
    return {
      list: [],
      showDialog: false,
      IsAdmin: false,
      ShowIndate: false,
      currentpage: 0,
      count: 0,
      searchkey: '',
      TaskIDs: [],
      form: {
        IntegralRuleID: 0,
        Value: '',
        Remark: ''
      },
      TaskInfo: {
        TaskID: '',
        TaskName: '',
        data_O: [],
        data_N: []
      }
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.load();
  },
  methods: {
    load: function load() {
      var _this = this;

      App.Service.post("/plus/Yqd/QuotaMsg/GetList", {
        start: App.Fn.toStart(this.currentpage),
        limit: App.pagesize,
        searchkey: this.searchkey
      }).then(function (res) {
        if (res.success) {
          _this.IsAdmin = true;
          _this.count = res.totalcount;
          _this.list = res.data;
        }
      });
    },
    pagerclick: function pagerclick(currentpage) {
      this.currentpage = currentpage;
      this.load();
    },
    search: function search() {
      this.currentpage = 0;
      this.load();
    },
    refresh: function refresh() {
      this.currentpage = 0;
      this.searchkey = 0;
      this.load();
    },
    openDialog: function openDialog(TaskID, TaskName) {
      var _this2 = this;

      App.Service.post("/plus/Yqd/QuotaMsg/GetTaskN_O", {
        TaskID: TaskID
      }).then(function (res) {
        if (res.success) {
          _this2.TaskInfo.TaskID = TaskID;
          _this2.TaskInfo.TaskName = TaskName;
          _this2.TaskInfo.data_O = res.data_O;
          _this2.TaskInfo.data_N = res.data_N;
          _this2.showDialog = true; //this.IsAdmin = true;
          //this.count = res.totalcount;
          //this.list = res.data;
        }
      });
    },
    closeDialog: function closeDialog() {
      this.showDialog = false;
      this.TaskInfo = {
        TaskID: '',
        TaskName: '',
        data_O: [],
        data_N: []
      };
    },
    SelectionChange: function SelectionChange(val) {
      this.TaskIDs = val.map(function (row) {
        return row.TaskID;
      });
    },
    upNewsData: function upNewsData() {
      var _this3 = this;

      App.Page.confirm("您确认要更新当前记录吗? ", function () {
        App.Service.post("/plus/Yqd/QuotaMsg/upNewsData", {
          TaskIDs: _this3.TaskInfo.TaskID
        }).then(function (res) {
          if (res.success) {
            _this3.closeDialog();

            _this3.load();
          }
        });
      }); //App.Service.post("/plus/Yqd/QuotaMsg/GetList", { start: App.Fn.toStart(this.currentpage), limit: App.pagesize, searchkey: this.searchkey }).then((res) => {
      //    if (res.success) {
      //        this.IsAdmin = true;
      //        this.count = res.totalcount;
      //        this.list = res.data;
      //    }
      //});
    }
  }
};/* script */
var __vue_script__$5 = script$5;
/* template */

var __vue_render__$5 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-main"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_vm.IsAdmin ? _c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "small",
      icon: "icon-plus4 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.refresh();
      }
    }
  }, [_vm._v("刷新")]), _vm._v(" "), _c("div", {
    staticStyle: {
      float: "right"
    }
  }, [_c("el-input", {
    staticStyle: {
      width: "180px"
    },
    attrs: {
      "prefix-icon": "el-icon-search",
      placeholder: "请输入类别名称",
      size: "small"
    },
    nativeOn: {
      keyup: function keyup($event) {
        if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
          return null;
        }

        return _vm.search();
      }
    },
    model: {
      value: _vm.searchkey,
      callback: function callback($$v) {
        _vm.searchkey = $$v;
      },
      expression: "searchkey"
    }
  }), _vm._v(" "), _c("el-button", {
    staticStyle: {
      padding: "7px 10px"
    },
    attrs: {
      type: "primary",
      size: "mini",
      icon: "icon-search el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.search();
      }
    }
  }, [_vm._v("搜索")])], 1)], 1) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "ad-card"
  }, [_c("el-table", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      data: _vm.list,
      size: "mini",
      border: ""
    },
    on: {
      "sort-change": _vm.handleSortChange
    }
  }, [_c("el-table-column", {
    attrs: {
      type: "selection",
      width: "50",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      label: "序号",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "TaskName",
      label: "任务名称",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "LeaderUnitName",
      label: "牵头单位",
      width: "150",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "UpCount",
      label: "更新数量",
      align: "left",
      width: "150"
    }
  }), _vm._v(" "), _vm.IsAdmin ? _c("el-table-column", {
    attrs: {
      label: "操作",
      width: "80",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [_c("el-button", {
          attrs: {
            type: "text",
            size: "mini"
          },
          on: {
            click: function click($event) {
              return _vm.openDialog(scope.row.TaskID, scope.row.TaskName);
            }
          }
        }, [_vm._v("查看")])];
      }
    }], null, false, 589556315)
  }) : _vm._e()], 1), _vm._v(" "), _c("br"), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_vm.count > 0 ? _c("el-pagination", {
    attrs: {
      background: "",
      layout: "prev, pager, next",
      "current-page": _vm.currentpage,
      total: _vm.count
    },
    on: {
      "current-change": _vm.pagerclick
    }
  }) : _vm._e()], 1)], 1)]), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dlg",
    attrs: {
      title: "指标信息对比",
      visible: _vm.showDialog,
      width: "1200px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("div", {
    staticStyle: {
      height: "40px"
    }
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "small",
      icon: "icon-refresh2 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.upNewsData();
      }
    }
  }, [_vm._v("更新当前数据")])], 1), _vm._v(" "), _c("h3", [_c("i", {
    staticClass: "icon-flag3"
  }), _vm._v("  " + _vm._s(_vm.TaskInfo.TaskName))]), _vm._v(" "), _c("el-row", {
    attrs: {
      gutter: 10
    }
  }, [_c("el-col", {
    attrs: {
      span: 12
    }
  }, [_c("el-card", {
    staticClass: "box-card"
  }, [_c("el-form", {
    ref: "formO",
    attrs: {
      "label-width": "100px"
    }
  }, [_c("h3", [_vm._v("当前数据")]), _vm._v(" "), _vm._l(_vm.TaskInfo.data_O, function (Item) {
    return Item.MsgList.length > 0 ? _c("div", {
      staticClass: "box-card_item"
    }, [_c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 24
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "指标名称："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.QuotaName) + "     \n                                            "), _c("el-popover", {
      attrs: {
        placement: "right",
        trigger: "hover"
      }
    }, [_c("el-table", {
      attrs: {
        data: Item.MsgList
      }
    }, [_c("el-table-column", {
      attrs: {
        "min-width": "150",
        property: "ds",
        label: "更新标识"
      }
    }), _vm._v(" "), _c("el-table-column", {
      attrs: {
        "min-width": "400",
        property: "Msg",
        label: "具体情况"
      }
    })], 1), _vm._v(" "), _c("i", {
      staticClass: "el-icon-question",
      attrs: {
        slot: "reference"
      },
      slot: "reference"
    })], 1)], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 24
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "更新标识："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.ds) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "当前值："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.CurrentValue) + "\n                                        ")])], 1), _vm._v(" "), _c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "目标值："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.TargetValue) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "起始值："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.StartValue) + "\n                                        ")])], 1), _vm._v(" "), _c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "值单位："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.ValueUnit) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "指标类型："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.QuotaType == 1 ? "进度类指标" : "监测类指标") + "\n                                        ")])], 1), _vm._v(" "), _c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "值类型："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.ValueType == 1 ? "正向" : "负向") + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("e-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 24
      }
    }, [Item.QuotaType == 1 ? _c("table", {
      staticClass: "ele_normal",
      staticStyle: {
        width: "100%"
      }
    }, [Item.MList.length > 0 ? _c("thead", [_c("tr", [_c("th", [_c("div", [_vm._v("时间")])]), _vm._v(" "), _vm._l(Item.MList, function (item, index) {
      return _c("th", {
        key: index,
        attrs: {
          align: "center"
        }
      }, [_c("div", [_vm._v(_vm._s(item.MT))])]);
    })], 2)]) : _vm._e(), _vm._v(" "), _c("tbody", [Item.MList.length > 0 ? _c("tr", [_c("td", [_c("div", [_vm._v("目标值")])]), _vm._v(" "), _vm._l(Item.MList, function (item, index) {
      return _c("td", {
        key: index,
        attrs: {
          align: "center"
        }
      }, [_c("div", [_vm._v(_vm._s(item.TargetValue))])]);
    })], 2) : _vm._e(), _vm._v(" "), _c("tr", [_c("td", [_c("div", [_vm._v("计算口径")])]), _vm._v(" "), _c("td", {
      attrs: {
        align: "center",
        colspan: Item.MList.length
      }
    }, [_c("div", [_vm._v(_vm._s(Item.Calucation))])])])])]) : _vm._e(), _vm._v(" "), Item.QuotaType == 2 ? _c("table", {
      staticClass: "ele_normal",
      staticStyle: {
        width: "100%"
      }
    }, [_c("tbody", [_c("tr", [_c("td", {
      attrs: {
        width: "10%"
      }
    }, [_c("div", [_vm._v("计算口径")])]), _vm._v(" "), _c("td", {
      attrs: {
        align: "center",
        colspan: Item.MList.length
      }
    }, [_c("div", [_vm._v(_vm._s(_vm.i.Calucation))])])])])]) : _vm._e()])], 1)], 1) : _vm._e();
  })], 2)], 1)], 1), _vm._v(" "), _c("el-col", {
    attrs: {
      span: 12
    }
  }, [_c("el-card", {
    staticClass: "box-card"
  }, [_c("h3", [_vm._v("最新数据")]), _vm._v(" "), _c("el-form", {
    ref: "formN",
    attrs: {
      "label-width": "100px"
    }
  }, _vm._l(_vm.TaskInfo.data_N, function (Item) {
    return _c("div", {
      staticClass: "box-card_item"
    }, [_c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 24
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "指标名称："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.QuotaName) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 24
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "更新标识："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.ds) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "当前值："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.CurrentValue) + "\n                                        ")])], 1), _vm._v(" "), _c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "目标值："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.TargetValue) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "起始值："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.StartValue) + "\n                                        ")])], 1), _vm._v(" "), _c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "值单位："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.ValueUnit) + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("el-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "指标类型："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.QuotaType == 1 ? "进度类指标" : "监测类指标") + "\n                                        ")])], 1), _vm._v(" "), _c("el-col", {
      attrs: {
        span: 12
      }
    }, [_c("el-form-item", {
      attrs: {
        label: "值类型："
      }
    }, [_vm._v("\n                                            " + _vm._s(Item.ValueType == 1 ? "正向" : "负向") + "\n                                        ")])], 1)], 1), _vm._v(" "), _c("e-form-item", {
      attrs: {
        "label-width": "0px"
      }
    }, [_c("el-col", {
      attrs: {
        span: 24
      }
    }, [Item.QuotaType == 1 ? _c("table", {
      staticClass: "ele_normal",
      staticStyle: {
        width: "100%"
      }
    }, [Item.MList.length > 0 ? _c("thead", [_c("tr", [_c("th", [_c("div", [_vm._v("时间")])]), _vm._v(" "), _vm._l(Item.MList, function (item, index) {
      return _c("th", {
        key: index,
        attrs: {
          align: "center"
        }
      }, [_c("div", [_vm._v(_vm._s(item.MT))])]);
    })], 2)]) : _vm._e(), _vm._v(" "), _c("tbody", [Item.MList.length > 0 ? _c("tr", [_c("td", [_c("div", [_vm._v("目标值")])]), _vm._v(" "), _vm._l(Item.MList, function (item, index) {
      return _c("td", {
        key: index,
        attrs: {
          align: "center"
        }
      }, [_c("div", [_vm._v(_vm._s(item.TargetValue))])]);
    })], 2) : _vm._e(), _vm._v(" "), _c("tr", [_c("td", [_c("div", [_vm._v("计算口径")])]), _vm._v(" "), _c("td", {
      attrs: {
        align: "center",
        colspan: Item.MList.length
      }
    }, [_c("div", [_vm._v(_vm._s(Item.Calucation))])])])])]) : _vm._e(), _vm._v(" "), Item.QuotaType == 2 ? _c("table", {
      staticClass: "ele_normal",
      staticStyle: {
        width: "100%"
      }
    }, [_c("tbody", [_c("tr", [_c("td", {
      attrs: {
        width: "10%"
      }
    }, [_c("div", [_vm._v("计算口径")])]), _vm._v(" "), _c("td", {
      attrs: {
        align: "center",
        colspan: Item.MList.length
      }
    }, [_c("div", [_vm._v(_vm._s(_vm.i.Calucation))])])])])]) : _vm._e()])], 1)], 1);
  }), 0)], 1)], 1)], 1)], 1)], 1)]);
};

var __vue_staticRenderFns__$5 = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v("指标信息预警")]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]);
}];
__vue_render__$5._withStripped = true;
/* style */

var __vue_inject_styles__$5 = undefined;
/* scoped */

var __vue_scope_id__$5 = undefined;
/* module identifier */

var __vue_module_identifier__$5 = undefined;
/* functional template */

var __vue_is_functional_template__$5 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$5 = normalizeComponent({
  render: __vue_render__$5,
  staticRenderFns: __vue_staticRenderFns__$5
}, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined);//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script$6 = {
  data: function data() {
    return {
      list: [],
      showDialog: false,
      IsAdmin: false,
      ShowIndate: false,
      currentpage: 0,
      count: 0,
      searchkey: '',
      title: '',
      TaskIDs: [],
      form: {
        FieldID: 0,
        FieldName: ''
      },
      rules: {
        FieldName: [{
          required: true,
          message: '请输入类别名称',
          trigger: 'blur'
        }]
      }
    };
  },
  mounted: function mounted() {
    App.Page.init(this);
    this.load();
  },
  methods: {
    load: function load() {
      var _this = this;

      App.Service.post("/plus/Yqd/QuotaField/GetList", {
        start: App.Fn.toStart(this.currentpage),
        limit: App.pagesize,
        searchkey: this.searchkey
      }).then(function (res) {
        if (res.success) {
          _this.IsAdmin = true;
          _this.count = res.totalcount;
          _this.list = res.data;
        }
      });
    },
    pagerclick: function pagerclick(currentpage) {
      this.currentpage = currentpage;
      this.load();
    },
    search: function search() {
      this.currentpage = 0;
      this.load();
    },
    refresh: function refresh() {
      this.currentpage = 0;
      this.searchkey = 0;
      this.load();
    },
    closeDialog: function closeDialog() {
      this.showDialog = false;
      this.form = {
        FieldID: 0,
        FieldName: ''
      };
    },
    submit: function submit() {
      var _this2 = this;

      this.$refs['form'].validate(function (valid) {
        if (valid) {
          App.Service.post("/plus/Yqd/QuotaField/" + (_this2.form.FieldID > 0 ? "Edit" : "Add"), _this2.form).then(function (res) {
            if (res.success) {
              _this2.closeDialog();

              _this2.load();
            }
          });
          return;
        }
      });
    },
    openDialog: function openDialog(TaskID) {
      var _this3 = this;

      this.title = '添加字段';

      if (!TaskID) {
        this.showDialog = true;
        return;
      }

      this.title = '编辑字段';
      App.Service.post("/plus/Yqd/QuotaField/GetTaskN_O", {
        TaskID: TaskID
      }).then(function (res) {
        if (res.success) {
          _this3.TaskInfo.TaskID = TaskID;
          _this3.TaskInfo.TaskName = TaskName;
          _this3.TaskInfo.data_O = res.data_O;
          _this3.TaskInfo.data_N = res.data_N;
          _this3.showDialog = true; //this.IsAdmin = true;
          //this.count = res.totalcount;
          //this.list = res.data;
        }
      });
    },
    blur: function blur(row) {
      var _this4 = this;

      App.Service.post("/plus/Yqd/QuotaField/UpdateTop", {
        FieldID: row.FieldID,
        Tactic: row.Tactic
      }).then(function (res) {
        if (res.success) {
          _this4.load();
        }
      });
    }
  }
};/* script */
var __vue_script__$6 = script$6;
/* template */

var __vue_render__$6 = function __vue_render__() {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-content"
  }, [_c("div", {
    staticClass: "ad-main"
  }, [_vm._m(0), _vm._v(" "), _c("div", {
    staticClass: "ad-console-body"
  }, [_vm.IsAdmin ? _c("div", {
    staticClass: "ad-console-toolbar"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "small",
      icon: "icon-plus4 el-icon--left"
    },
    on: {
      click: function click($event) {
        return _vm.openDialog();
      }
    }
  }, [_vm._v("添加")])], 1) : _vm._e(), _vm._v(" "), _c("div", {
    staticClass: "ad-card"
  }, [_c("el-table", {
    staticStyle: {
      width: "100%"
    },
    attrs: {
      data: _vm.list,
      size: "mini",
      border: ""
    },
    on: {
      "sort-change": _vm.handleSortChange
    }
  }, [_c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      label: "序号",
      align: "center"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "FieldName",
      label: "字段名称",
      align: "left"
    }
  }), _vm._v(" "), _c("el-table-column", {
    attrs: {
      prop: "Tactic",
      label: "排序",
      width: "90",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [_c("el-input-number", {
          staticStyle: {
            width: "66px"
          },
          attrs: {
            id: scope.row.FieldID,
            size: "small",
            controls: false
          },
          on: {
            blur: function blur($event) {
              return _vm.blur(scope.row);
            }
          },
          model: {
            value: scope.row.Tactic,
            callback: function callback($$v) {
              _vm.$set(scope.row, "Tactic", $$v);
            },
            expression: "scope.row.Tactic"
          }
        })];
      }
    }])
  }), _vm._v(" "), _vm.IsAdmin ? _c("el-table-column", {
    attrs: {
      label: "操作",
      width: "150",
      align: "center"
    },
    scopedSlots: _vm._u([{
      key: "default",
      fn: function fn(scope) {
        return [_c("el-button", {
          attrs: {
            type: "text",
            size: "mini"
          },
          on: {
            click: function click($event) {
              return _vm.openDialog(scope.row.FieldID);
            }
          }
        }, [_vm._v("编辑")]), _vm._v(" "), _c("el-button", {
          attrs: {
            type: "text",
            size: "mini"
          },
          on: {
            click: function click($event) {
              return _vm.openDialog(scope.row.FieldID);
            }
          }
        }, [_vm._v("删除")])];
      }
    }], null, false, 1199955539)
  }) : _vm._e()], 1), _vm._v(" "), _c("br"), _vm._v(" "), _c("div", {
    staticStyle: {
      "text-align": "center"
    }
  }, [_vm.count > 0 ? _c("el-pagination", {
    attrs: {
      background: "",
      layout: "prev, pager, next",
      "current-page": _vm.currentpage,
      total: _vm.count
    },
    on: {
      "current-change": _vm.pagerclick
    }
  }) : _vm._e()], 1)], 1)]), _vm._v(" "), _c("el-dialog", {
    directives: [{
      name: "dialogDrag",
      rawName: "v-dialogDrag"
    }],
    staticClass: "dlg",
    attrs: {
      title: _vm.title,
      visible: _vm.showDialog,
      width: "500px"
    },
    on: {
      close: function close($event) {
        return _vm.closeDialog();
      }
    }
  }, [_c("el-form", {
    ref: "form",
    staticClass: "rule",
    attrs: {
      model: _vm.form,
      "status-icon": "",
      rules: _vm.rules,
      "label-width": "80px"
    }
  }, [_c("el-form-item", {
    attrs: {
      "label-width": "0px"
    }
  }, [_c("el-col", {
    attrs: {
      span: 24
    }
  }, [_c("el-form-item", {
    attrs: {
      label: "temp",
      prop: "FieldName"
    }
  }, [_c("span", {
    attrs: {
      slot: "label"
    },
    slot: "label"
  }, [_vm._v("字段名")]), _vm._v(" "), _c("el-input", {
    attrs: {
      size: "medium",
      placeholder: "请选择字段名"
    },
    model: {
      value: _vm.form.FieldName,
      callback: function callback($$v) {
        _vm.$set(_vm.form, "FieldName", $$v);
      },
      expression: "form.FieldName"
    }
  })], 1)], 1)], 1), _vm._v(" "), _c("el-form-item", {
    staticStyle: {
      "margin-bottom": "0px"
    }
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      size: "medium"
    },
    on: {
      click: _vm.submit
    }
  }, [_vm._v("提交")]), _vm._v(" "), _c("el-button", {
    attrs: {
      size: "medium"
    },
    on: {
      click: function click($event) {
        return _vm.closeDialog();
      }
    }
  }, [_vm._v("关闭")])], 1)], 1)], 1)], 1)]);
};

var __vue_staticRenderFns__$6 = [function () {
  var _vm = this;

  var _h = _vm.$createElement;

  var _c = _vm._self._c || _h;

  return _c("div", {
    staticClass: "ad-console-top"
  }, [_c("div", {
    staticClass: "ad-console-top-name"
  }, [_vm._v("清单字段")]), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-body"
  }), _vm._v(" "), _c("div", {
    staticClass: "ad-console-top-end"
  })]);
}];
__vue_render__$6._withStripped = true;
/* style */

var __vue_inject_styles__$6 = undefined;
/* scoped */

var __vue_scope_id__$6 = undefined;
/* module identifier */

var __vue_module_identifier__$6 = undefined;
/* functional template */

var __vue_is_functional_template__$6 = false;
/* style inject */

/* style inject SSR */

/* style inject shadow dom */

var __vue_component__$6 = normalizeComponent({
  render: __vue_render__$6,
  staticRenderFns: __vue_staticRenderFns__$6
}, __vue_inject_styles__$6, __vue_script__$6, __vue_scope_id__$6, __vue_is_functional_template__$6, __vue_module_identifier__$6, false, undefined, undefined, undefined);var router = [{
  path: '/yqd/org/user!:query',
  name: 'yqd_orgtree',
  component: __vue_component__
}, {
  path: '/yqd/org/relation!:query',
  name: 'yqd_orgtree',
  component: __vue_component__$1
}, {
  path: '/yqd/org/leader!:query',
  name: 'yqd_leader',
  component: __vue_component__$2
}, {
  path: '/yqd/org/logon!:query',
  name: 'yqd_userlog',
  component: __vue_component__$3
}, {
  path: '/yqd/org/Integral!:query',
  name: 'yqd_Integral',
  component: __vue_component__$4
}, {
  path: '/yqd/qm/qmlist!:query',
  name: 'yqd_qmlist',
  component: __vue_component__$5
}, {
  path: '/yqd/qm/qflist!:query',
  name: 'yqd_qflist',
  component: __vue_component__$6
}];exports.router=router;Object.defineProperty(exports,'__esModule',{value:true});});